﻿<phone:PhoneApplicationPage 
    xmlns:local="clr-namespace:MidimediaFinder"
    local:TiltEffect.IsTiltEnabled="True"
    x:Class="MidimediaFinder.EditCommentPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    xmlns:toolbox="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded" BackKeyPress="PhoneApplicationPage_BackKeyPress">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="{Binding Path=Strings.Title, Source={StaticResource LocalizedStrings }}" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="{Binding Path=Strings.EditComment, Source={StaticResource LocalizedStrings }}" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <ScrollViewer >
                <StackPanel x:Name="StackPanel">
                    <TextBlock Height="30" HorizontalAlignment="Left" Name="UsernameLabel" Text="{Binding Path=Strings.Username, Source={StaticResource LocalizedStrings }}" FontSize="24" FontStretch="Expanded" FontWeight="Normal" TextAlignment="Left" Visibility="Visible" />
                    <TextBox Name="Username_Area" FontSize="30"  TextAlignment="Center" KeyDown="Username_Area_KeyDown" Visibility="Visible"/>
                    <TextBlock Height="30" HorizontalAlignment="Left" Name="PasswordLabel" Text="{Binding Path=Strings.Password, Source={StaticResource LocalizedStrings }}" FontSize="24" FontStretch="Expanded" FontWeight="Normal" TextAlignment="Left" Visibility="Visible" />
                    <TextBox Name="Password_Area" FontSize="30"  TextAlignment="Center" KeyDown="Password_Area_KeyDown" Visibility="Visible"/>
                    <Button Name="Star1_Button" Click="Star1_Button_Click" Width="70" Height="70" HorizontalAlignment="Left" BorderBrush="{x:Null}" Margin="10, 0, 0, 0">
                        <Button.Template>
                            <ControlTemplate>
                                <Image Source="/MidimediaFinder;component/Images/star.png" />
                            </ControlTemplate>
                        </Button.Template>
                    </Button>
                    <Button Name="Star2_Button" Click="Star2_Button_Click" Width="70" Height="70" HorizontalAlignment="Left" BorderBrush="{x:Null}" Margin="100, -70, 0, 0">
                        <Button.Template>
                            <ControlTemplate>
                                <Image Source="/MidimediaFinder;component/Images/star.png" />
                            </ControlTemplate>
                        </Button.Template></Button>
                    <Button Name="Star3_Button" Click="Star3_Button_Click" Width="70" Height="70" HorizontalAlignment="Left" BorderBrush="{x:Null}" Margin="190, -70, 0, 0">
                        <Button.Template>
                            <ControlTemplate>
                                <Image Source="/MidimediaFinder;component/Images/star.png" />
                            </ControlTemplate>
                        </Button.Template></Button>
                    <Button Name="Star4_Button" Click="Star4_Button_Click" Width="70" Height="70" HorizontalAlignment="Left" BorderBrush="{x:Null}" Margin="280,-70,102,0">
                        <Button.Template>
                            <ControlTemplate>
                                <Image Source="/MidimediaFinder;component/Images/star.png" />
                            </ControlTemplate>
                        </Button.Template></Button>
                    <Button Name="Star5_Button" Click="Star5_Button_Click" Width="70" Height="70" HorizontalAlignment="Left" BorderBrush="{x:Null}" Margin="370, -70, 10, 0">
                        <Button.Template>
                            <ControlTemplate>
                                <Image Source="/MidimediaFinder;component/Images/star.png" />
                            </ControlTemplate>
                        </Button.Template></Button>

                    <Button Name="Star1_Button_Disabled" Click="Star1_Button_Click" Width="70" Height="70" HorizontalAlignment="Left" BorderBrush="{x:Null}" Margin="10,-70, 0, 0" Visibility="Collapsed">
                        <Button.Template>
                            <ControlTemplate>
                                <Image Source="/MidimediaFinder;component/Images/star_disabled.png" />
                            </ControlTemplate>
                        </Button.Template>
                    </Button>
                    <Button Name="Star2_Button_Disabled" Click="Star2_Button_Click" Width="70" Height="70" HorizontalAlignment="Left" BorderBrush="{x:Null}" Margin="100, -70, 0, 0" Visibility="Collapsed">
                        <Button.Template>
                            <ControlTemplate>
                                <Image Source="/MidimediaFinder;component/Images/star_disabled.png" />
                            </ControlTemplate>
                        </Button.Template>
                    </Button>
                    <Button Name="Star3_Button_Disabled" Click="Star3_Button_Click" Width="70" Height="70" HorizontalAlignment="Left" BorderBrush="{x:Null}" Margin="190, -70, 0, 0" Visibility="Collapsed">
                        <Button.Template>
                            <ControlTemplate>
                                <Image Source="/MidimediaFinder;component/Images/star_disabled.png" />
                            </ControlTemplate>
                        </Button.Template>
                    </Button>
                    <Button Name="Star4_Button_Disabled" Click="Star4_Button_Click" Width="70" Height="70" HorizontalAlignment="Left" BorderBrush="{x:Null}" Margin="280,-70,102,0" Visibility="Collapsed">
                        <Button.Template>
                            <ControlTemplate>
                                <Image Source="/MidimediaFinder;component/Images/star_disabled.png" />
                            </ControlTemplate>
                        </Button.Template>
                    </Button>
                    <Button Name="Star5_Button_Disabled" Click="Star5_Button_Click" Width="70" Height="70" HorizontalAlignment="Left" BorderBrush="{x:Null}" Margin="370, -70, 10, 0" Visibility="Collapsed">
                        <Button.Template>
                            <ControlTemplate>
                                <Image Source="/MidimediaFinder;component/Images/star_disabled.png" />
                            </ControlTemplate>
                        </Button.Template>
                    </Button>

                    <TextBlock Height="30" HorizontalAlignment="Left" Name="CommentLabel" Text="{Binding Path=Strings.Comment, Source={StaticResource LocalizedStrings }}" FontSize="24" FontStretch="Expanded" FontWeight="Normal" TextAlignment="Left" Visibility="Visible" />
                    <TextBlock Height="30" HorizontalAlignment="right" Name="CharsArea" Text="" FontSize="24" FontStretch="Expanded" FontWeight="Normal" TextAlignment="Right" Visibility="Visible" Margin="0, -35, 0, 0"/>
                    <TextBox Name="Comment_Area" FontSize="30" Visibility="Visible" AcceptsReturn="False" TextAlignment="Center" KeyUp="Comment_Area_KeyUp" KeyDown="Comment_Area_KeyDown"/>

                    <Button Name="Send_Button" Content="{Binding Path=Strings.EditComment, Source={StaticResource LocalizedStrings }}" Click="Send_Button_Click"/>

                    <toolbox:PerformanceProgressBar Name="ToggleProgressBar" Height="20" IsIndeterminate="False" IsEnabled="False" Visibility="Collapsed" />
                    <TextBlock  Name="EmptyText" Text=" " FontSize="22" Height="50" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="Visible" TextAlignment="Center"/>

                    <Button Name="Cancel_Button" Content="{Binding Path=Strings.Cancel, Source={StaticResource LocalizedStrings }}" Click="Cancel_Button_Click" Visibility="Collapsed" />

                </StackPanel>
            </ScrollViewer>
        </Grid>
    </Grid>

    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
